package com.u.iot.engineering.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Alex Wu
 * @since 2025-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ai_task")
public class AiTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("style")
    private String style;

    /**
     * low,mid,high
     */
    @TableField("priority")
    private String priority;

    /**
     * 0-未发布，1-已发布，2-报错
     */
    @TableField("status")
    private Integer status;

    @TableField("publish_server_id")
    private Long publishServerId;

    @TableField("cpu_core")
    private Integer cpuCore;

    @TableField("cpu_m")
    private Integer cpuM;

    @TableField("gpu_m")
    private Integer gpuM;

    @TableField("cuda_core")
    private Integer cudaCore;

    @TableField("tensor_core")
    private Integer tensorCore;

    @TableField("owner")
    private String owner;

    /**
     * 访问域名
     */
    @TableField("access_domain")
    private String accessDomain;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
